Hi Keven,
Well, no if no "Action" is defined for the MCode then the Interpreter simply does nothing.
I guess the thing to do is to add a "SetMCodeAction" function to KMotion_dotNet where the MCode number, action code, 5 doubles, and a string would be passed in to define the Action. Actually this is required to set the Action to M_Action_Callback to even get the callback.
The only workaround at the moment short of adding that functionality would be to hard code the MCodeActions on the C++ side.
Regards
TK
// This structure defines the action and
// parameters for a particular MCode Action
typedef struct
{
int Action;
double dParams[MAX_MCODE_DOUBLE_PARAMS];
char String[256];
} MCODE_ACTION;
| Group: DynoMotion |
Message: 3022 |
From: Brad Murry |
Date: 1/9/2012 |
| Subject: Re: M Code in KMotion_dotNet |
I should have the implementation complete by tomorrow. -Brad Murry From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes Sent: Monday, January 09, 2012 4:29 PM To: DynoMotion@yahoogroups.com Subject: Re: [DynoMotion] Re: M Code in KMotion_dotNet Well, no if no "Action" is defined for the MCode then the Interpreter simply does nothing. I guess the thing to do is to add a "SetMCodeAction" function to KMotion_dotNet where the MCode number, action code, 5 doubles, and a string would be passed in to define the Action. Actually this is required to set the Action to M_Action_Callback to even get the callback. The only workaround at the moment short of adding that functionality would be to hard code the MCodeActions on the C++ side. // This structure defines the action and // parameters for a particular MCode Action struct int Action; double dParams[MAX_MCODE_DOUBLE_PARAMS]; char String[256]; From: fireup_kev <kliboon@...> To: DynoMotion@yahoogroups.com Sent: Monday, January 9, 2012 12:16 PM Subject: [DynoMotion] Re: M Code in KMotion_dotNet Tom,
I don't see that these features are exposed in KMotion_dotNet. When I it sees an M6, it should at lease pause and allow the event to happen and then allow a way to continue, but it just zips right through it...
Kevin
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote: > > Hi Kevin, >  > Both are possibilities. The functionality that is shown on the KMotionCNC Tool Setup Screen allows such things as setting bits and calling a C Program in KFLOP. But there is no screen to help set it up. You must configure the information programmatically. The information is stored in a table of "MCode_Actions". I haven't looked at if/how it is exposed in KMotion_dotNet. There was also a new type of action that can simply make a call back to you to do whatever you want. >  > Regards > TK > > > ________________________________ > From: fireup_kev <kliboon@...> > To: DynoMotion@yahoogroups.com > Sent: Monday, January 9, 2012 9:35 AM > Subject: [DynoMotion] M Code in KMotion_dotNet > > >  > How is M Codes handled in KMoiton_dotNet? When it sees a M6 for example, does it send a callback, call a C Program in KFLOP? > > Thanks, > Kevin >
|
|
| Group: DynoMotion |
Message: 3025 |
From: fireup_kev |
Date: 1/9/2012 |
| Subject: Re: M Code in KMotion_dotNet |
Thanks Brad,
How do I use the UserCallBack, it doesn't seem to be doing anything when I activate it.
--- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
>
> I should have the implementation complete by tomorrow.
>
>
>
> -Brad Murry
>
>
>
> From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
> Sent: Monday, January 09, 2012 4:29 PM
> To: DynoMotion@yahoogroups.com
> Subject: Re: [DynoMotion] Re: M Code in KMotion_dotNet
>
>
>
>
>
> Hi Keven,
>
>
>
> Well, no if no "Action" is defined for the MCode then the Interpreter simply does nothing.
>
>
>
> I guess the thing to do is to add a "SetMCodeAction" function to KMotion_dotNet where the MCode number, action code, 5 doubles, and a string would be passed in to define the Action. Actually this is required to set the Action to M_Action_Callback to even get the callback.
>
>
>
> The only workaround at the moment short of adding that functionality would be to hard code the MCodeActions on the C++ side.
>
>
>
> Regards
>
> TK
>
>
>
>
>
>
>
> // This structure defines the action and
>
> // parameters for a particular MCode Action
>
> typedef
>
> struct
>
> {
>
> int Action;
>
> double dParams[MAX_MCODE_DOUBLE_PARAMS];
>
> char String[256];
>
> } MCODE_ACTION;
>
>
>
> From: fireup_kev <kliboon@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, January 9, 2012 12:16 PM
> Subject: [DynoMotion] Re: M Code in KMotion_dotNet
>
>
>
> Tom,
>
> I don't see that these features are exposed in KMotion_dotNet. When I it sees an M6, it should at lease pause and allow the event to happen and then allow a way to continue, but it just zips right through it...
>
> Kevin
>
> --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> >
> > Hi Kevin,
> > Ã
> > Both are possibilities.Ã The functionality that is shown on the KMotionCNC Tool Setup Screen allows such things as setting bits and calling a C Program in KFLOP.Ã But there is no screen to help set it up.Ã You must configure the information programmatically.Ã The information is stored in a table of "MCode_Actions".Ã I haven't looked at if/how it is exposed in KMotion_dotNet.Ã There was also a new type of action that can simply make a call back to you to do whatever you want.
> > Ã
> > Regards
> > TK
> >
> >
> > ________________________________
> > From: fireup_kev <kliboon@>
> > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > Sent: Monday, January 9, 2012 9:35 AM
> > Subject: [DynoMotion] M Code in KMotion_dotNet
> >
> >
> > Ã
> > How is M Codes handled in KMoiton_dotNet? When it sees a M6 for example, does it send a callback, call a C Program in KFLOP?
> >
> > Thanks,
> > Kevin
> >
>
|
|
| Group: DynoMotion |
Message: 3026 |
From: Tom Kerekes |
Date: 1/9/2012 |
| Subject: Re: M Code in KMotion_dotNet |
Hi Kevin,
I'm not sure which one you mean. But there is a special GCode User Callback Set_G_USER_CALLBACK that is triggered in the form of a special Comment. It returns the string portion of the comment as a code you might use to know what to do. The form is:
(USR,My String)
There is a C example of its use in the SimpleGCode Example.
Regards
TK
| Group: DynoMotion |
Message: 3027 |
From: fireup_kev |
Date: 1/9/2012 |
| Subject: Re: M Code in KMotion_dotNet |
Ok, I understand now. I didn't realize that there has to be
"(USR, message_string)" in my G Code for it to work.
Thanks,
Kevin
--- In DynoMotion@yahoogroups.com, Tom Kerekes <tk@...> wrote:
>
> Hi Kevin,
> Â
> I'm not sure which one you mean. But there is a special GCode User Callback Set_G_USER_CALLBACK that is triggered in the form of a special Comment. It returns the string portion of the comment as a code you might use to know what to do. The form is:
> Â
> (USR,My String)
> Â
> There is a C example of its use in the SimpleGCode Example.
> Â
> Regards
> TK
> Â
> Â
>
> From: fireup_kev <kliboon@...>
> To: DynoMotion@yahoogroups.com
> Sent: Monday, January 9, 2012 8:54 PM
> Subject: [DynoMotion] Re: M Code in KMotion_dotNet
>
>
> Â
> Thanks Brad,
>
> How do I use the UserCallBack, it doesn't seem to be doing anything when I activate it.
>
> --- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@> wrote:
> >
> > I should have the implementation complete by tomorrow.
> >
> >
> >
> > -Brad Murry
> >
> >
> >
> > From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of Tom Kerekes
> > Sent: Monday, January 09, 2012 4:29 PM
> > To: DynoMotion@yahoogroups.com
> > Subject: Re: [DynoMotion] Re: M Code in KMotion_dotNet
> >
> >
> >
> >
> >
> > Hi Keven,
> >
> >
> >
> > Well, no if no "Action" is defined for the MCode then the Interpreter simply does nothing.
> >
> >
> >
> > I guess the thing to do is to add a "SetMCodeAction" function to KMotion_dotNet where the MCode number, action code, 5 doubles, and a string would be passed in to define the Action. Actually this is required to set the Action to M_Action_Callback to even get the callback.
> >
> >
> >
> > The only workaround at the moment short of adding that functionality would be to hard code the MCodeActions on the C++ side.
> >
> >
> >
> > Regards
> >
> > TK
> >
> >
> >
> >
> >
> >
> >
> > // This structure defines the action and
> >
> > // parameters for a particular MCode Action
> >
> > typedef
> >
> > struct
> >
> > {
> >
> > int Action;
> >
> > double dParams[MAX_MCODE_DOUBLE_PARAMS];
> >
> > char String[256];
> >
> > } MCODE_ACTION;
> >
> >
> >
> > From: fireup_kev <kliboon@>
> > To: DynoMotion@yahoogroups.com
> > Sent: Monday, January 9, 2012 12:16 PM
> > Subject: [DynoMotion] Re: M Code in KMotion_dotNet
> >
> >
> >
> > Tom,
> >
> > I don't see that these features are exposed in KMotion_dotNet. When I it sees an M6, it should at lease pause and allow the event to happen and then allow a way to continue, but it just zips right through it...
> >
> > Kevin
> >
> > --- In DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com> , Tom Kerekes <tk@> wrote:
> > >
> > > Hi Kevin,
> > > Ãâ
> > > Both are possibilities.Ãâ The functionality that is shown on the KMotionCNC Tool Setup Screen allows such things as setting bits and calling a C Program in KFLOP.Ãâ But there is no screen to help set it up.Ãâ You must configure the information programmatically.Ãâ The information is stored in a table of "MCode_Actions".Ãâ I haven't looked at if/how it is exposed in KMotion_dotNet.Ãâ There was also a new type of action that can simply make a call back to you to do whatever you want.
> > > Ãâ
> > > Regards
> > > TK
> > >
> > >
> > > ________________________________
> > > From: fireup_kev <kliboon@>
> > > To: DynoMotion@yahoogroups.com <mailto:DynoMotion%40yahoogroups.com>
> > > Sent: Monday, January 9, 2012 9:35 AM
> > > Subject: [DynoMotion] M Code in KMotion_dotNet
> > >
> > >
> > > Ãâ
> > > How is M Codes handled in KMoiton_dotNet? When it sees a M6 for example, does it send a callback, call a C Program in KFLOP?
> > >
> > > Thanks,
> > > Kevin
> > >
> >
>
|
|
| | | |